package com.ajavaer.framework.im.tencent.request.data;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Arrays;
import java.util.List;

public class SendGroupSystemNotificationData implements TencentImRequestData{
    /**
     * 必填	向哪个群组发送系统通知
     */
    @JsonProperty("GroupId")
    private String groupId;
    /**
     * 必填	系统通知的内容
     */
    @JsonProperty("Content")
    private String content;
    /**
     * 选填	接收者群成员列表，不填或为空表示全员下发
     */
    @JsonProperty("ToMembers_Account")
    private List<String> toMembersAccount;

    public SendGroupSystemNotificationData() {
    }

    public SendGroupSystemNotificationData(String groupId, String content) {
        this.groupId = groupId;
        this.content = content;
    }

    public SendGroupSystemNotificationData(String groupId, String content, String... toMembersAccount) {
        this(groupId, content);
        this.toMembersAccount = Arrays.asList(toMembersAccount);
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public List<String> getToMembersAccount() {
        return toMembersAccount;
    }

    public void setToMembersAccount(List<String> toMembersAccount) {
        this.toMembersAccount = toMembersAccount;
    }
}
